<?php
return array( 
		'mysql'=>array( 
			'host'=>'localhost',
			'port'=>3306,
			'user'=>'root',
			'pass'=>'root',
			'dbname'=>'chuanzhi',
			'charset'=>'utf8',
			'prefix'=>'me_',
		),
    //静态db类配置
    "Db"=>array(
        'dbhost'=>'localhost',
        'dbport'=>3306,
        'dbuser'=>'root',
        'dbpwd'=>'root',
        'dbname'=>'chuanzhi',
        'dbcharset'=>'utf8',
        'tablepre'=>'me_',
    ),
    'captcha'=>array(
            'width'=>90,
            'height'=>25,
            'fontsize'=>5,
            'strlen'=>4,
            'pixels'=>200,
            'lines'=>6,
        'minus_x'=>31,  //文字从图片中间向左移动的数值
        'minus_y'=>8
    ),
    // 图片上传的默认配置
    'upload'=>array(
        'file_upload_root'=>UPLOAD_DIR,  //根路径，其下可以自己新建路径
        'file_maxsize'=>1048576,            //规定大小不超过1M
        'file_allow_types'=>'image/png,image/jpg,image/jpeg,image/pjpeg,image/gif',
    ),
    'image_thumb'=>array(
        'image_thumb_canvas_width'=>200,       //规定缩略图的宽度
        'image_thumb_canvas_height'=>200,
        'image_allow_exts'=>'png,jpg,jpeg,gif',
        'image_thumb_pre'=>'thumb_',
        'image_thumb_folder'=>'' //规定缩略图存放文件夹名。默认保存在thumb，如果为空，则保存在原图目录
    ),
    'image_water'=>array(
        'image_water_path'=>UPLOAD_DIR.DS."logo.png",   //水印图必须放在Upload下
        'image_finish_folder'=>'',  //成图后保存的文件夹名,空则是和原图保存在同一文件下
        'image_finish_pre'=>'water_',
        'image_exts'=>'png,jpg,jpeg,gif',
        'water_position'=>5,        //1表示左上角，2右上角，3中间，4左下角，5右下角
        'water_pct'=>20             //0-100，数值越小则越水印越淡
    ),
    'cache_file'=>array(
        'cache_project_file_suffix'=>"html",        //缓存文件后缀名。默认为html
        'rewrite_list_session_key'=>'cache_rewrite_list',    //重写缓存列表页标志，作为session的下标
    ),
	);